﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" isELIgnored="false" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <!--[if lt IE 9]>
<script type="text/javascript" src="<%= basePath %>static/backstage/lib/html5shiv.js"></script>
<script type="text/javascript" src="<%= basePath %>static/backstage/lib/respond.min.js"></script>
<![endif]-->
    <link rel="stylesheet" type="text/css" href="<%= basePath %>static/backstage/static/h-ui/css/H-ui.min.css"/>
    <link rel="stylesheet" type="text/css" href="<%= basePath %>static/backstage/static/h-ui.admin/css/H-ui.admin.css"/>
    <link rel="stylesheet" type="text/css" href="<%= basePath %>static/backstage/lib/Hui-iconfont/1.0.8/iconfont.css"/>
    <link rel="stylesheet" type="text/css"
          href="<%= basePath %>static/backstage/static/h-ui.admin/skin/default/skin.css" id="skin"/>
    <link rel="stylesheet" type="text/css" href="<%= basePath %>static/backstage/static/h-ui.admin/css/style.css"/>
    <!--[if IE 6]>
<script type="text/javascript" src="<%= basePath %>static/backstage/lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
    <base href="<%= basePath %>"/>
    <title>删除的用户</title>
</head>
<body>
<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> <a href="olalashop/sysAccountApi/index">首页</a> <span
        class="c-gray en">&gt;</span> 用户中心 <span
        class="c-gray en">&gt;</span> 删除的用户<a class="btn btn-success radius r"
                                              style="line-height:1.6em;margin-top:3px"
                                              href="javascript:location.replace(location.href);" title="刷新"><i
        class="Hui-iconfont">&#xe68f;</i></a></nav>
<div class="page-container">
    <div class="text-c"> 日期范围：
        <input type="text" onfocus="WdatePicker({ maxDate:'#F{$dp.$D(\'endTime\')||\'%y-%M-%d\'}' })" id="beginTime"
               class="input-text Wdate" style="width:120px;">
        -
        <input type="text" onfocus="WdatePicker({ minDate:'#F{$dp.$D(\'beginTime\')}',maxDate:'%y-%M-%d' })"
               id="endTime" class="input-text Wdate" style="width:120px;">
        <input type="text" class="input-text" style="width:250px" placeholder="输入会员名称、电话、邮箱" name="userInfo"
               id="userInfo">
        <button type="submit" class="btn btn-success radius" name="searchBtn" id="searchBtn"><i class="Hui-iconfont">&#xe665;</i>
            搜用户
        </button>
    </div>
    <div class="cl pd-5 bg-1 bk-gray mt-20"><span class="l"><a href="javascript:;" class="btn btn-danger radius"><i
            class="Hui-iconfont">&#xe6e2;</i> 批量删除</a> </span> <span
            class="r">共有数据：<strong>${customers.size()}</strong> 条</span></div>
    <div class="mt-20">
        <table class="table table-border table-bordered table-hover table-bg table-sort">
            <thead>
            <tr class="text-c">
                <th><input type="checkbox" id="checkAll" name="checkAll" value=""></th>
                <th>客户ID</th>
                <th>用户名</th>
                <th>真实姓名</th>
                <th>性别</th>
                <th>手机号</th>
                <th>邮箱</th>
                <th>证件类型</th>
                <th>证件号码</th>
                <th>所在城市</th>
                <th>注册更新时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <c:forEach items="${customers}" var="user">
                <tr>
                    <td><input type="checkbox" id="username1" value="1" name=""></td>
                    <td>${user.customerId}</td>
                    <td>${user.customerName}</td>
                    <td>${user.realName}</td>

                    <td>
                        <c:choose>
                            <c:when test="${'1'.equals(user.sex)}">
                                <span><h5>男</h5></span>
                            </c:when>
                            <c:when test="${'2'.equals(user.sex)}">
                                <span><h5>女</h5></span>
                            </c:when>
                            <c:otherwise>
                                <span><h5>未设置</h5></span>
                            </c:otherwise>
                        </c:choose>
                    </td>

                    <td>${user.phone}</td>
                    <td>${user.emai}</td>
                    <td>
                        <c:choose>
                            <c:when test="${'1'.equals(user.idcardType)}">
                                <span><h5>身份证</h5></span>
                            </c:when>
                            <c:when test="${'2'.equals(user.idcardType)}">
                                <span><h5>军官证</h5></span>
                            </c:when>
                            <c:otherwise>
                                <span><h5>护照</h5></span>
                            </c:otherwise>
                        </c:choose>
                    </td>
                    <td>${user.idcardNo}</td>
                    <td>${user.systemCity.cityName}</td>
                    <td>${user.modifyTime}</td>
                    <td>
                        <a href="MemberApi/returnMembers/${user.customerInfoId}">还原</a>&nbsp;&nbsp;
                        <a href="#">彻底删除</a>
                    </td>
                </tr>
            </c:forEach>
            </tbody>
        </table>
    </div>
</div>
<!--_footer 作为公共模版分离出去-->
<script type="text/javascript" src="<%= basePath %>static/backstage/lib/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="<%= basePath %>static/backstage/lib/layer/2.4/layer.js"></script>
<script type="text/javascript" src="<%= basePath %>static/backstage/static/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="<%= basePath %>static/backstage/static/h-ui.admin/js/H-ui.admin.js"></script>
<!--/_footer 作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="<%= basePath %>static/backstage/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript"
        src="<%= basePath %>static/backstage/lib/datatables/1.10.0/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="<%= basePath %>static/backstage/lib/laypage/1.2/laypage.js"></script>
</body>
</html>